from django.contrib import admin
from .models import *


class PushRecordAdmin(admin.ModelAdmin):
    list_display = ('get_add_time', 'message')
admin.site.register(PushRecord, PushRecordAdmin)


class MessageAdmin(admin.ModelAdmin):
    list_display = ('get_add_time', 'title', 'content', 'market_order_id', 'msg_type', 'order_id')
    ordering = ('-add_timestamp',)
admin.site.register(Message, MessageAdmin)